import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { Guard } from '../constants/guard.constant';

@Entity('guards')
export class GuardEntity extends BaseEntity {
  @PrimaryGeneratedColumn('uuid')
  uuid: string;

  @Column('enum', { enum: Guard, comment: '权限名称' })
  name: Guard;

  @Column('varchar', { comment: '权限显示名称', nullable: true })
  displayName: string;
}
